package com.its.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.its.goods.pojo.Goods;
import com.its.pojo.Cart;

import java.util.List;

/**
* @author lenovo
* @description 针对表【gym_cart(购物车)】的数据库操作Service
* @createDate 2025-05-27 15:34:29
*/
public interface CartService extends IService<Cart> {
    //将商品加入到购物车
    void addToCart(Goods goods, Integer mount,String memberAccount);

    //查询我的购物车
    List<Cart> getCartByMemberAccount(String memberAccount);

    //将商品从我的购物车删除
    void deleteToCart(Integer id,String memberAccount);
}
